package game.MazeRunner;

public class PseudoNumberGenerator {
	public  static int seed;
	public static int a,b,p;
	static {
		seed=10000;
		a=12457;
		b=9473;
		p=65537;
	}
	
	public static int getRandom(int mod) {
		seed=(a*seed+b)%p;
		return seed%mod;
	}
	
}
